package com.starlink.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.starlink.common.domain.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("用户宝宝响应模型")
public class UserChildVO extends BaseVO implements Serializable {
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("姓名/昵称")
    private String name;
    @ApiModelProperty("头像")
    private String avatar;
    @ApiModelProperty("性别 1男 2女")
    private Integer sex;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生日")
    private Date birthday;
}
